import request from '@/utils/request'

// 查询发票信息
export function list(data) {
  return request({
    url: '/invoice/list',
    method: 'get',
    params: data
  })
}

// 添加发票信息
export function add(data) {
  return request({
    url: '/invoice/add',
    method: 'post',
    data
  })
}

// 修改发票信息
export function update(data) {
  return request({
    url: '/invoice/update',
    method: 'put',
    data
  })
}

// 删除发票信息
export function del(id) {
  return request({
    url: '/invoice/' + id,
    method: 'delete'
  })
}
